package com.dhb.base.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "electric")
public class ElectricEntity {

    @Id
    @GenericGenerator(name = "electricGenerator", strategy = "uuid")
    @GeneratedValue(generator= "electricGenerator")
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "电表串码")
    private String ammeterNo;

    @ApiModelProperty(value = "数据上传时间")
    private Date dataTime;

    @ApiModelProperty(value = "表盘数据")
    private String dialPlateData;

    @ApiModelProperty(value = "电表类型")
    private String dialPlateType;

    @ApiModelProperty(value = "从属一级公司id")
    private String oneLevelCompanyId;

    @ApiModelProperty(value = "从属一级公司名")
    private String oneLevelCompanyName;

    @ApiModelProperty(value = "从属二级公司id")
    private String twoLevelCompanyId;

    @ApiModelProperty(value = "从属二级公司名")
    private String twoLevelCompanyName;

    @ApiModelProperty(value = "从属关系ID")
    private String subordinateId;


    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "更新时间")
    private Date updateDate;


}
